home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_gen / euphor14.zip / WHAT2DO.DOC < prev    next >
Text File  |  1996-05-20  |  4KB  |  90 lines

  1.         WHAT TO DO ?
  2.         ------------
  3.         
  4.  Now that you have read README.DOC and INSTALL.DOC, and you have installed 
  5.  Euphoria, here are some things you can try:
  6.  
  7.  * Run each of the demo programs in the demo directory. You just type ex
  8.    followed by the name of the .ex file to execute. e.g.
  9.  
  10.        ex buzz
  11.  
  12.    will run the file buzz.ex. (Depending on your graphics card you may have to 
  13.    edit a line in some of the .ex files to select a different graphics mode. 
  14.    Most demos will try to use SVGA modes. You need DOS mouse support to run
  15.    mouse.ex and ttt.ex).
  16.  
  17.    You can also double-click on a .ex file from Windows. You will have
  18.    to "associate" .ex files with ex.exe. A few of the demos are meant
  19.    to be run from the command line, but most will look ok from Windows.
  20.  
  21.  * Use the Euphoria editor, ed, to edit a .e or .ex file. Notice the
  22.    use of colors. You can adjust these colors along with the cursor size and 
  23.    many other "user-modifiable" parameters by editing constant declarations
  24.    in ed.ex. Use  Esc q  to quit the editor or Esc h for help.
  25.  
  26.  * Try the benchmarks in demo\bench. Do you get the same ratios as we did
  27.    in comparison with QBasic? If you have a C/C++ compiler, how much faster
  28.    can you get these benchmarks to run? We bet you'll be surprised, 
  29.    especially when you consider that Euphoria runs the benchmarks with
  30.    subscript checking and a host of other run-time checks.
  31.  
  32.  * Read the manual in doc\refman.doc. The simple expressive power of Euphoria
  33.    makes this manual much shorter than manuals for other languages. If you
  34.    have a specific question, type "guru" followed by a list of words. The
  35.    guru program will search all the .doc files as well as all the example 
  36.    programs and other files, and will present you with a sorted list of the
  37.    most relevant chunks of text that might answer your enquiry.
  38.    
  39.  * Try running a Euphoria program with tracing turned on. Add:
  40.         with trace
  41.         trace(1)
  42.    at the beginning of any .ex file.
  43.  
  44.  * Try running a Euphoria program with profiling turned on. You need
  45.    to say "with profile" at the start of the file. The result will be
  46.    written to ex.pro. Language Wars (lw.ex) is interesting.
  47.  
  48.  * Try the demo\learn.ex quiz. You may have trouble with this until you know
  49.    more about Euphoria.
  50.  
  51.  * Try modifying some of the demo programs. 
  52.  
  53.    First some simple modifications (takes less than a minute):
  54.  
  55.      What if there were 100 C++ ships in Language Wars? What if sb.ex had to 
  56.      move 1000 tiny balls instead of 50 big ones? Change some parameters in 
  57.      polygon.ex. Can you get prettier pictures to appear? Add some funny 
  58.      phrases to buzz.ex. 
  59.  
  60.    Then, some slightly harder ones (takes a few minutes):
  61.  
  62.      Define a new function of x and y in plot3d.ex.
  63.  
  64.    Then some challenging ones (takes an hour or more):
  65.  
  66.      Add your own customized new command to the editor. Set up your own 
  67.      customized database by defining the fields in mydata.ex. 
  68.  
  69.    Then some major projects (several days or weeks): 
  70.  
  71.      Add SVGA graphics to Language Wars. Try to write a smarter 3D TicTacToe 
  72.      algorithm. Design your own custom GUI library, either in text mode or 
  73.      VGA graphics mode.
  74.  
  75.  * Try writing your own program in Euphoria. A program can be as simple as:
  76.  
  77.        ? 2+2
  78.  
  79.    Remember that after any error you can simply type "ed" to jump into
  80.    the editor at the offending file and line.
  81.  
  82.    You can immediately run a program that you are editing, by typing 
  83.    Esc e Enter in the editor. When the program is finished, hit Enter to 
  84.    return to the editor.
  85.  
  86.    Once you get used to it, you'll be developing programs much faster in
  87.    Euphoria than you could in BASIC, Fortran, Pascal, C/C++ or any other
  88.    language that we are aware of.
  89.  
  90.